TaxJar\Order_Tax_Applicator S

Total Complexity 28
Dependencies 6
Dependents 1
Total lines 291
Lines of code 146
Logical lines of code 67
Comment lines 112
Methods 20
Properties 2

Methods 20

Method Rating Maintainability Complexity Lines of code
sum_taxes()
S
58 4 16
apply_tax_to_shipping_item()
S
59 2 15
apply_tax_to_shipping_items()
S
74 2 5
apply_tax_to_line_items()
S
73 2 5
prepare_tax_rates_for_application()
S
64 2 10
apply_tax_to_fees()
S
72 2 5
create_rate_and_apply_to_fee_line_item()
S
60 1 13
get_order_total()
S
68 1 7
update_totals()
S
71 1 5
apply_zero_tax_to_item()
S
81 1 3
get_shipping_tax_rate()
S
80 1 3
__construct()
S
81 1 3
get_tax_rate_for_fee_line_item()
S
72 1 5
apply_tax()
S
74 1 5
get_product_line_item_tax_rate()
S
70 1 6
create_product_tax_rate()
S
65 1 10
create_rate_and_apply_to_product_line_item()
S
65 1 9
apply_new_tax()
S
69 1 8
remove_existing_tax()
S
81 1 3
get_cart_total_for_order()
S
64 1 10